package net.wofly.right.service;

import java.util.List;

import net.wofly.right.domain.FuncInit;

public interface IFuncInitService {

    /**
     * 增加或修改
     *
     * @param entity
     * @return
     */
    public FuncInit save(FuncInit entity);

    /**
     * 删除
     *
     * @param entity
     * @return
     */
    public void delete(FuncInit entity);

    /**
     * 根据主键ID删除
     *
     * @param key
     * @return
     */
    public void delete(String key);

    /**
     * 根据主键查询
     *
     * @param key
     * @return
     */
    public FuncInit findOne(String key);

    public List<FuncInit> save(List<FuncInit> entityList);

    public List<FuncInit> findAll();

    public List<FuncInit> findAllBySortAsc();

}
